/* ===== 基本設定 ===== */
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  line-height: 1.6;
  background: #fafafa;
  color: #333;
}

.all {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== ヘッダー ===== */
header {
  background: #f4f4f4;
  text-align: center;
  padding: 20px;
}
header h1 {
  margin: 0;
  font-size: 2.2em;
}
header h2 {
  margin: 8px 0;
  font-size: 1.1em;
  color: #666;
}
header .phone {
  margin-top: 10px;
  font-weight: bold;
  color: #e63946;
}

/* ===== ナビゲーション ===== */
nav {
  background: #333;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
nav a {
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  transition: background 0.3s;
}
nav a:hover {
  background: #555;
}

/* ===== ホーム用 hero画像 ===== */
.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* ===== ホーム用 グリッドギャラリー ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin: 30px 0;
}
.grid img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
}
.grid .highlight {
  background: #f8f9fa;
  border-left: 4px solid #e63946;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  border-radius: 6px;
  display: flex;
  align-items: center;
}

/* ===== 企業理念（カードスタイル） ===== */
.philosophy-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
}
.card-text h3 {
  margin-top: 0;
  font-size: 1.2em;
  color: #333;
}
.card-text p {
  font-size: 0.95em;
  color: #555;
}

/* ===== info-table（教室情報） ===== */
.info-table {
  margin: 30px 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.info-table .row {
  display: flex;
  border-bottom: 1px solid #eee;
}
.info-table .row:last-child {
  border-bottom: none;
}
.info-table .cell {
  padding: 15px;
  flex: 1;
}
.info-table .header {
  background: #f8f9fa;
  font-weight: bold;
  color: #444;
  flex: 0 0 30%;
  border-right: 1px solid #eee;
}

/* スマホでは縦並びに */
@media (max-width: 768px) {
  .info-table .row {
    flex-direction: column;
  }
  .info-table .header {
    border-right: none;
    border-bottom: 1px solid #eee;
    flex: none;
  }
}

/* ===== Google Map ===== */
.map {
  margin: 40px 0;
  text-align: center;
}
.map h2 {
  margin-bottom: 15px;
  font-size: 1.3em;
}
.map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
}

/* ===== フッター ===== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}
footer a {
  color: #fcbf49;
}
